package datamodels;
/**
* Design: Thank to GROUP 5
* A manuscript class. Containing a list of reviews submitted reviewers
* the content of the manuscript and its author.  
* 
* @author Zach Turk
* @version 11.15.2011
*/
public class Review 
{
	/**My author name*/
	private String my_author;
	/**My review*/
	private String my_text;
	public Review(String the_author, String the_text)
	{
		my_author = the_author;
		my_text = the_text;
	}
	public String getText()
	{
		return my_text;
	}
	public String getAuthorName()
	{
		return my_author;
	}
	public boolean equals(Review the_review)
	{
		int correct = 0;
		boolean same = false;
		if (my_author.equals(the_review.getAuthorName()))
		{
			correct++;
		}
		if (my_text.equals(the_review.getText()))
		{
			correct++;
		}
		if (correct == 2)
		{
			same = true;
		}
		return same;
	}
}
